// 搜索页请求
import { searchResult } from '../../../Api/index.js'
const searchAbout = {
  namespaced: true,
  actions: {
    async getSearchResult ({ commit }, value) {
      const { data } = await searchResult(value)
      commit('GETSEARCGRESULT', data)
    }
  },
  mutations: {
    GETSEARCGRESULT (state, data) {
      state.searchList = data
    }
  },
  state: {
    searchList: []
  },
  getters: {}
}
export default searchAbout
